package com.shangxian.giveithome.entity.community;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * 流览表
 */
@Data
public class LookArticle {

    /**
     * *******
     */
    private Long id;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 文章id
     */
    private Long issueId;

    /**
     * 浏览时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    @JsonFormat(
            pattern = "yyyy-MM-dd HH-mm-ss",
            timezone = "GMT+8"
    )
    private Date lookTime;
}
